home *** CD-ROM | disk | FTP | other *** search
/ ftp.mactech.com 2010 / ftp.mactech.com.tar / ftp.mactech.com / machack / Hacks97 / WarriorsProgress.sit / Warrior’s Progress / source code / Source / Libraries / Files / FileLoop.h < prev    next >
Text File  |  1997-06-28  |  599b  |  36 lines

  1. // FileLoop.h
  2.  
  3. #ifndef FileLoop_h
  4. #define FileLoop_h
  5.  
  6. #ifndef CatInfo_h
  7. #include "CatInfo.h"
  8. #endif
  9.  
  10. class FileLoop
  11.   {
  12.     private:
  13.         Directory directory;
  14.         uint16 index;
  15.         bool finished;
  16.         
  17.         CatInfo info;
  18.     
  19.         void GetInfo();
  20.         static DirectoryID GetDirectoryID( );
  21.         
  22.     public:
  23.         FileLoop( Directory );
  24.         
  25.         bool Finished() const                    { return finished; }
  26.         bool Unfinished() const                    { return !finished; }
  27.         
  28.         void operator++();
  29.         void operator++(int)                        { operator++(); }
  30.         
  31.         const CatInfo& operator*() const        { return info; }
  32.         const CatInfo *operator->() const    { return &info; }
  33.   };
  34.  
  35. #endif
  36.